Stored Procedures [dbo].[BAEEventGetRegistrationAnswersByQuestionId]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@questionIdint4
SQL Script
CREATE PROCEDURE [dbo].[BAEEventGetRegistrationAnswersByQuestionId]
    @questionId as int
AS
    SELECT QuestionID, Question, Answer, q.EventCode, a.RegistrantID
    FROM EventRegistrationAnswer AS a, EventSetupQuestion AS q
    WHERE q.EventCode = a.EventCode AND
        q.EventSetupQuestionID = a.QuestionID AND
        q.EventSetupQuestionID = @questionId;

GO
Uses